adding in win percentage function