Class based game Tic-Tac-Toe