Added winning algorithm