map abstraction, calculate distance, various ship stuff