integrate AngelScript; move tile initialization to script