@Override
  public boolean equals(Object obj) {
    if (this == obj)
      return true;
    if (obj == null)
      return false;
    if (!(obj instanceof GameMapData))
      return false;
    GameMapData other = (GameMapData) obj;
    if (!Arrays.deepEquals(data, other.data))
      return false;
    if (height != other.height)
      return false;
    if (playerSpawnX != other.playerSpawnX)
      return false;
    if (playerSpawnY != other.playerSpawnY)
      return false;
    if (width != other.width)
      return false;
    return true;
  }