@Override
    public boolean equals(Object object) {
        if (this == object) return true;
        if (object == null || getClass() != object.getClass()) return false;

        Position position = (Position) object;

        if (!Arrays.equals(coordinates, position.coordinates)) return false;

        return true;
    }