The solve is working.  Had to make some changes to be sure that it was doing all the conversions between int and char correctly.