fixed locking the board, added in start of permutations + word checking