Update board.py

Added debug to diagnose infinite loop