Redesign of the system

Now based on ranks
Also added a Lottery table printer