added game-playing function