fixed gameover/pause bugs