Added number function, split some helper functions, fixed spelling errors, removed redundant variables from the crown search, and shortened a few of the redundant code.