Tic-Tac-Toe game using OOP in Java