created file for general helper fcns, moved from board.py