countLiveNeighbours(board,i,j) implementation

Cells that are not in the border are working prefectly.
Having a bug when cheking boarder cells