small tweaks to the grid loop for buttons in lab8.py