Tic-Tac-Toe using OOP in Java