added calculateWinner2014 function