Created determineChoice method

We wanted a method to generalize how choices are determined, so I wrote one. Since it is now a util method, it has unit tests, so we have less code and more tests :).