Project update: Started to move world generator stuff into it's own class and unit. I think I'll leave state machine for end.

Next on: Figuring out how to make collision with map (probably I'll use my custom TSprite class for that).