Added grid-based coordinates and turn tolerance