check_win function made more general to check for any number in a row.