change cursor, fix distance calculations to better note diagonals