changed the way of resizing the window, added callback to TestGameState. fixes #34