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

        RectangleShape that = (RectangleShape) o;

        if (entered != that.entered) return false;
        if (currentPoint != null ? !currentPoint.equals(that.currentPoint) : that.currentPoint != null) return false;
        if (points != null ? !points.equals(that.points) : that.points != null) return false;

        return true;
    }