The number of ways of selecting three squares on a chessboard so that all three be on a diagonal line of the board or parallel to it is
A) 196
B) 126
C) 252
D) 392