basic game loop with moving player