changed from bufferedreader to scanner
finished the Map class
fixed some syntax errors