Function arePointsEqual

Checks if two Points are equal based on their x and y coordinates.