Fixed bug in game playing