protected void connectTiles(Tile tile1, Direction direction1, Tile tile2, Direction direction2){
		if(tile1 != null) tile1.setEdge(direction1, this);
		if(tile2 != null) tile2.setEdge(direction2, this);
	}