CGE2: Move inventory system's functions from cge2_main.cpp to inventory.cpp.