getLocation used for ship positioning, fixed a few exceptions by wrong
input