Counting function for nines of things.
Reorder parameters for easier usage.
Improve game datatypes and helper functions. countX function and consorts do not typecheck. No clue why.