A solver for iojoe's game "10"