A refactored and annotated version of Notch's Left 4k Dead.