Added functions to check for clear diagonals and clear straight paths between two points.