Removed public, write access to tile counter.
Reorganized the eval_tiles function to be a little cleaner and more compact.