So, let's see...
I think we should start by checking the red rooms...
I can check B5, and mail-mi can check D3 both trivially. That will confirm liopoil as prisoner unless mail-mi lies (or liopoil is a guard) which would confirm hyram as prisoner.
liopoil should NOT move into D4 since hyram might be able to throw him into a variety of deadly places (though none mortal, in the situation where hyram would do that)
liopoil could control right which would let hyram look at E3.
That would confirm everyone except hyram's room...so if we don't have a contradiction by then, then we will know hyram is the guard.
Okay, that would work if everyone did it...but if liopoil didn't follow he could move to D4 instead and push hyram out.
So, hyram should move out of the vision chamber, and liopoil should move into it.
My proposed action then is that liopoil controls right and then moves into E4, while hyram moves to E5 and controls something depending on what is discovered by then.
(note I'm assuming liopoil shifts right for letters below)
If hyram doesn't leave the vision chamber, then he's the guard and we have a good idea of where Room 25 is, liopoil can move to D5.
If hyram moves into D4, liopoil can move out of it, hyram's the guard and liopoil can check A4 to see if it's Room 25.
If liopoil is the guard, then he might move into the vision chamber, but then hyram can move out of it...since he's already programmed a move.
Anybody have any further suggestions or problems with this suggestion?