Update Source.cpp

loop isn't working properly**