Massive restructuring of server-side spaceship code