Somewhat improved the encounter system
Made the distinction of layers a bit more clear
Added some script functions. Moved ScriptUtils to seperate files