public int getTile(int x, int y)
	{
		if (x < 0)
			return -1;
		if (y < 0)
			return -1;
		if (x > getWidth() - 1)
			return -1;
		if (y > getHeight() - 1)
			return -1;

		return tiles.getElement(y, x);
	}