trying improving Algorithme : new command is the next if on the move