Updated based on Lologarithm's improvements

Because I'm not good enough at Github to mitigate the changes
Lologarithm made on Spacedock over to this new program that had already
been changed, I had to transcribe it. But it was well worth the
improvements he made. Thanks Lologarithm!
Merge branch 'master' of https://github.com/iceburg333/FTL-Homeworld