call new graph(walls,numlights) and graph.g is the map of point:arraylist<point>