Added check for a winner