fixed code for isGamePaused()