Changed is_valid_pos

Changed the method from private to public
so that additional methods don't need another public method which does
the same thing.