Amed gs.safe-king? and gs.transitable?. Add comments and tests.