Fixed the boundary issues, ants now move normally