refactors the validate placement and place ship