A js implementation of the MinMax algorithm for the tic-tac-toe game