console.log winner

writing in the functions and result and then printing to console.log