now stopping when a command has finished

cleaned up speed code

tried another way to do command replay, but is still does not work. i have more ideas to do thie properly.