Total number of ways =64×63
Now if first square is in one of the four corner, the second square can be chosen in just one way =(4)(1)=4
If the first square is one of the 24 non-corner square along the side of the chess board, the second square can be chosen in two ways =(24)(2)=48
Now if the first square is any of the 36 remaining square, the second square can be chosen in four ways =(36)(4)=144
Therefore favorable ways =4+48+144=196
Therefore required probability =19664×63=7144