a little game, learned form book, but in c insead c++