Refactor coding style
Removed unused imports
Refactored handling of game loading