Cleaned up code and changed the move speed

added 2 new headers and a bunch of new functions.