switch typeof to instanceof so it actually works
Working mirrors & more state-sync code
forgot to add this state-save json