created a random dice game as examples of observer and observable