added graph and mapgeneration

graph is working, mapgeneration is a mess