added functions for gameboard class