Added the required number function to Project 2 and made some slight changes to the global variables