add retry count system and trapdoor activation on three tries (need wiring)