added gamelogic