Fix bounds checking for enemies