Added the feature win and draw into the main function and did som changes to index.html