some cleanup. added endGame trigger.