Separation of checkWinner() into its own module.