fixes the bugs during and after game pause