Overrides equals and hashcode for GridPoint, uses objectmap instead of
two dimensional arrays.