set coordinates method for ships