fix bug when the ant walking in 90 degrees angle