Fixed readFromFile, only type needs fixing for loading maps to work