modified to include the ability to make the platforms rotate around a point