@Override
	public boolean equals(Object o)
	{
		if(o instanceof Context)
		{
			Item[][] p = ((Context) o).getPieces();

			for(int i = 0; i < LARGURA; i++)
			{
				for(int j = 0; j < ALTURA; j++)
				{
					if(p[i][j] == null ^ pieces[i][j] == null)
						return false;
					else if(p[i][j] != null && pieces[i][j] != null)
					{
						if(p[i][j] instanceof ItemRei ^ pieces[i][j] instanceof ItemRei)
							return false;
						if(!p[i][j].getCor().equals(pieces[i][j].getCor()))
							return false;
					}
				}
			}
		}
		else
			return false;

		return true;
	}