updated diagonals check and skip bot logic