Tweaks to check for an already solved cube. Catch an exception on formatting an optimal string