adding mustache for templates
adding some logic for getting the winner on the ui side