Here’s how the cell code works:
1. Create a currentPlayer variable.
This variable holds the value corresponding to the current player. The
current player variable will rotate between X and O.
2. Assign constants for the states.
The three states are integer constants.
3. Create an array of images.
Assign images that correspond to the various states.