Imported working version of the level simulator.