Tested all win conditions, and made a function to iterate through the board to find the number of characters of a certain type that exist