Tic tac toe game using classes