Added gravity and fixed platform updates