fixes pan flip, and initial direction
adds code to test random movements and pauses of motors