Finally, the computer moves correctly