Added moveToward functions. Added definitions for movement functions.