Gamelogic and resetting match