Refactored initialization code to controller.
Added goal view.
Refactored canvas rendering to constructor.
Added winning configuration check.