Changed as many things back as I could while keeping the code working-able. You may want to look into not having three main methods, and be sure to always return an integer from them