@Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (!(obj instanceof Cell))
            return false;
        Cell other = (Cell) obj;
        if (bomb != other.bomb)
            return false;
        if (!Arrays.equals(coordinates, other.coordinates))
            return false;
        if (state == null) {
            if (other.state != null)
                return false;
        } else if (!state.equals(other.state))
            return false;
        return true;
    }