solve problem nonary game