Added the Model to the view
Made threads terminate on GUI close.
Implemented OnRandom and OnReveal methods.