Update functions, reorganize, version update

Added an associative array for event cancelling if the player dies and has to leave.