Fixed code errors. MapData.java still has one error to fix.