Added winning algorithim