very messy code - needs cleanup, but comparing drawed numbers to historical works