fixed some bugs in game pause feature