Added key listeners for GameObjects and improved code. Also added exit functionality(button 2).