Password System: Cleaned up, wrote a function to calculate bits used given a max number, condensed a bunch of code into for loops for readability and speed