Added a new GamePanel class and moved the animating in there. When the game state is InGameState, it adds a GamePanel to the frame.