saving state every second - revert on enemy hit