Added some command processing

Added processing for movement commands.