Added very messy rulebook code. Will cleanup later.