refactor coordinates to reduce dependency
Further refactoring of ship placing method