refactored ships_json_generator to now function correctly