An XO game with AI using Java Script