Updates ratking swarm-spawn

Was using some other indexing and a roundabout method to check for empty space.  Streamlines the code, ensures a swarm rather than three rats, and fixes #10040.