Major overhaul of the entire game

Most of the code was refactored.
Graphics and game logic decoupled.
Everything was put into separete files.
Still some TODO: to be done.