faster baddie finding code