begin to implement winner calculation