change switch to if/then/else for solution selection, so it compiles under DEBUG
Merge pull request #1 from wolfmanjm/fix/solution-selection

change switch to if/then/else for solution selection, so it compiles und...