public void genLines() {
		lines = new Line2D[(xTiles + 1) * (yTiles + 1) * 2];
		int pos = 0;
		for(int i = 0; i < numNodes; i++) {
			if(nodes[i].y == 0 || !adj[i][i - 1]) {
				if(i == entry) entryl = pos;
				lines[pos++] = new Line2D.Float(nodes[i].y * tileSize + adjustx,
												nodes[i].x * tileSize + adjusty,
												nodes[i].y * tileSize + adjustx,
												nodes[i].x * tileSize + adjusty + tileSize);
			}
			if(nodes[i].x == 0 || !adj[i][i - xTiles]) {
				lines[pos++] = new Line2D.Float(nodes[i].y * tileSize + adjustx,
												nodes[i].x * tileSize + adjusty,
												nodes[i].y * tileSize + adjustx + tileSize,
												nodes[i].x * tileSize + adjusty);
			}
		}
		for(int i = 0; i < xTiles; i++) {
			lines[pos++] = new Line2D.Float(i * tileSize + adjustx,
											adjusty + height,
											i * tileSize + adjustx + tileSize,
											adjusty + height);
		}
		for(int i = 0; i < yTiles; i++) {
			if((i + 1) * xTiles - 1 == exit) exitl = pos;
			lines[pos++] = new Line2D.Float(adjustx + width,
											i * tileSize + adjusty,
											adjustx + width,
											i * tileSize + adjusty + tileSize);
		}
		//lines[pos++] = new Line2D.Float(adjustx, adjusty + height, adjustx + width, adjusty + height);
		//lines[pos++] = new Line2D.Float(adjustx + width, adjusty, adjustx + width, adjusty + height);
	}