checks for wins