fixed issue with calling function, added logic for finding winner