tic tac toe using OOP