countLiveNeighbours(board,i,j)

All bugs fixed and all parts of the board  working properly