@Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Move other = (Move) obj;
        if (this.initialBalls != other.initialBalls && (this.initialBalls == null || !this.initialBalls.equals(other.initialBalls))) {
            return false;
        }
        if (this.direction != other.direction) {
            return false;
        }
        if (this.color != other.color) {
            return false;
        }
        return true;
    }