The classic game implemented by c