KRPPKRP endgame: Simplify ugly switch statement