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.
Merge pull request #10041 from KA101/ratfix

Updates ratking swarm-spawn