Move to next code when hit

You may want to use an approach similar to the one described here. Basically make use of global variables to change the combination for all bots, the first bot that finds a hit will increase the combination for everybody.