tic tac toe built with ruby and javascript