Shorten TicTacToeBoard's code using string keys