Update greenBottles.py

I've added a loop to shorten the lines of codes