working pause button in game