Fixed the naiveMove method.