made player move along with platforms