check for winning combination