fixed some bugs in game class