refactor areIncorrectCoordinates() to areCorrectCoordinates()