added untested game logic