moved generate_board_data to models.py