Simplified steam pipes, added locked doors, moved everything into a main event loop.