changed gameboard to q for shorter variable names