Prettier code in gamepanel