Refactoring GamePanel