Adjusted transferred code, can now generate random map and print it out