added tic tac toe in object oriented style