Fixed exception handling in gamecontroller; created map.java