Why are you solving for all possible worlds up front? That takes far too much time, and they wont even ask you questions about several of the scenarios. Instead, let each question's local rule (if x is 3rd... etc.) determine what scenarios you write out.