Matrix Framework for Board Games and Apps