Python, but not programming, newbie here. I\'m programming with lists and have run into an interesting problem.
width = 2 height = 2 # Traverse the board de
Don't modify lists that you are iterating over!
Instead, do something like:
for square in squares[:]:
so that you're iterating over a copy of the list while still changing the original.