countLiveNeighbours(board,i,j) update

In this update the bug is solved and borders  are working properly.
The cornner code  need to be implementated