scripted game loop and player can move