public void checkLocation()
	{
		if(tile[cY][cX] == 5 && map == 0)
		{
			cY = 245;
			cX = 245;
			map = 1;

			tile[244][246] = 6;
			tile[244][244] = 6;
			tile[244][245] = 6;
			tile[245][245] = 8;
			tile[245][244] = 6;
			tile[245][246] = 6;
			tile[246][245] = 7;
		}
		if(tile[cY][cX] == 7 && map == 1)
		{
			cY = 15;
			cX = 490;
			map = 0;
		}
	}