By far the easiest thing for you to do is to get a year-long, multi-entry Non-Immigrant Type O-A (Long Stay) visa from the thai consulate in your country BEFORE you wing your way here.
Here's something I wrote that goes over the three things commonly referred to as a "retirement visa".
****************************************************************************
**********
**********
*****
*****
*****
3/permalink/
*****
*****
*****
9/