func cal space around ship