switched order of maps and pricing and cleaned up code a lot with spacing