Code formatting
Pause the game on onPause event