gamelogic update and leveltrigger