Updated clean dirty check to use book instead of numbers, eliminating possibility eventual overflow error