Done: Now the logic of getting the flip result resides in the model, and the controller has been much simplified.