split up cgame.lua into multiple files