Original GrandLarc gamemode, written in C.