Fixed a few index issues and winner calculation approach.