moved rendering to GameState