added a for loop to the last else clause

So it could take on many numbers. All tests passed