fixed the idle monster from crashing game

also had game exit when you die