Migrating RNG to be an instate of State case class
WIP on Exercise 6-11: Candy state machine