function getValidPosition() {
let pos = 0
while (pos == 0) {
let x = randInt(0, arenaSize-1)
let y = randInt(0, arenaSize-1)
let allowed = true
for (let i = 0; i < botPos.length; i++) {
let thisX = botPos[i][0]
let thisY = botPos[i][1]
if (abs(thisX-x) <= 1 && abs(thisY-y) <= 1) {
allowed = false
}
}
if (allowed) {
pos = [x, y]
}
}
return pos
}