@Override
        public boolean equals(Object obj) {
                if (this == obj)
                        return true;
                if (obj == null)
                        return false;
                if (getClass() != obj.getClass())
                        return false;
                Coordinates other = (Coordinates) obj;
                if (col == null) {
                        if (other.col != null)
                                return false;
                }
                else if (!col.equals(other.col))
                        return false;
                if (row == null) {
                        if (other.row != null)
                                return false;
                }
                else if (!row.equals(other.row))
                        return false;
                return true;
        }