performance improvements, comments

improved performance by only parsing rules once per turn