Added the rest of the views and winning logic