A lot of changes to endgame_solver and referenced modules. It is stil NOT working ...
Further investigation is needed.