fix slow first move
refactor function that creates board