added onQuitEvent to set hp back to 20