seperated window and game logic. basic walking works