Added gravity and friction