Fixing bug with player not sticking to moving platform