I am refactoring to a FP approach. The Memory, Dealer and Dictionary class should ideally be done by reducers