tic tac toe implementation in javascript