C implementation of unfinished game.