board.py: simplify code