fixed a typo in the game resizing function