Looped main function, removed maximization prompt, fixed input function for real, fixed IsValid function, looped main function.