fixed a movement and created equals method for Coordinate
mergin