Correctly looping through bots

I should really turn on E_NOTICE ...