Simplify the implementation for TicTacToe move counting without using HashSet but using an array.