Improve the SquareGame
class from the previous problem set so that it tracks who the winning player is. Add the initial player "A"
or "B"
to the constructor. Add a method getWinner
that returns the winner or "X"
if the game isn't already over. If the game is constructed with a player name other than "A"
or "B"
, the game is over and the winner should be "X"
.