Further refactoring of ship placing method
refactor method to check ship place outside grid