WIP save and check state by entity by tick