implementing TicTacToe Game using Singleton design pattern