make ship partially done, various utility functions for points.