Separated platform movement code from platform classes.