Factored code for reading worlds into new file.
Added required imports for the game to compile.