Piozila: Level loading

Fixed a bug that caused the game to crash when loading a level. Fixed some bugs.