add command for destroying last
rewrite how the timer works
fix syntax error that prevent the destruction of the last event