Rules fixed
Bad exit added