still tinkering

lots of updates here bec the last state change unlocking a door broke
the code