implement gamelogic