Added spec and logic for determining winner