oop version of tic_tac_toe