Working Better.  Logic Wrong.

Should be rotating after leaving a room, but it is leaving on entering.
 Otherwise looks good.  Need to fix that and add 'win' condition.