have gotten up to compile if statemnt
This is the main part of the program and runs all the fucntionality