renamed platform to cart
Got the math right now for the pendulum