Fixed but of robot sometimes doing illegal moves.