make CLI based tic tac toe functional