Creates static function to determine legal placement of ship based on new parameters.