Added gravity and player position update