working on saving state while level editing