Fucking stupid shit corrected

made the while an if. As it should be