changed board#diagonals implementation