cleaned up code and re-enabled platform movement