small little math game in cpp