PS: I got drunk last night. Not wasted, but drunk. I hope to ameliorate that fact tonight though :)
EDIT: Okay, done refactoring. I took out all the stupid parts and inserted in an equally bad (albeit working!) solution ^___^
Now time to get some tilez one teh mapsz!!!