public void setUpNodes(){
		Random rnd = new Random();
		nodes = new PathNode[rnd.nextInt(3) + 1];
		
		for(int i=0; i<nodes.length; i++){
			int num = rnd.nextInt(4);
			int randX = topLeftX + rnd.nextInt(width);
			int randY = topLeftY + rnd.nextInt(height);
			
			// random point on top side
			if(num == 0)
				nodes[i] = new PathNode(randX, topLeftY);
			// random point on right side
			if(num == 1)
				nodes[i] = new PathNode(topLeftX + width, randY);
			// random point on bot side
			if(num == 2)
				nodes[i] = new PathNode(randX, topLeftY + height);
			// random point on left side
			if(num == 3)
				nodes[i] = new PathNode(topLeftX, randY);
		}
		
		center = new PathNode(topLeftX + width/2,
				  topLeftY + height/2);
	}