correct times for moving added. Bug fixed: timevariable overflow