It compiles and shouldnt infinite loop anymore. Going to go to class and debug more