Renamed try_attack function to try_win and created new try_attack function which works differently