removes hard-coded values allowing for play on non-3x3 boards