fix bug in game playing