added tick_to_win feature.