Today is bug day. Clean up some code.
Swapped some for loops for while loops, while loops for for loops,
scrubbed vomit off the ceiling, you get the idea.
You know, I'm not sure why I decided I needed to use
a bunch of while loops for those linked lists, especially considering
my extensive experience with such mundane things in projects like
Warzone 2100 Legacy. Maybe I thought it looked better for some reason?