complete win logic updated to include tie alert.