Server code for the horrible people game engine