A short practice for making a tic tac toe game in javascript