function comparePoints(pointA, pointB) {
      return (pointA.x == pointB.x && pointA.y == pointB.y);
    }
Checks if the two points are equal
@param {object} point A point object.
@param {object} point B point object.
@return true of the points match