Proper spawning and end-game casing, closes #27, bugfixes