Simple tic tac toe javascript game