Nicely done, and fitting the logic into 80 chars!
I imagine with the extra space of 256 chars you could probably extend this into a mini rogue style game!