Created a function to check for wins in the columns of the board, based on function checkRows