Fixed a bug where Coordinates were not being compared correctly