created function to test if ship sections are in grid boundaries
passing tests for check boundaries function