Change implementation of loteria game to use the observer pattern