Integration of level editor, first working state machine