Trying to move stuff from game to engine (I think it should be in the engine). Causes the game to crash, so, it's commented.