Updated so that levels persist through the application and added command line arguments