changed implementation of board#diagonals