countLiveNeighbours() using checkingLoop()

In this update is implemented a new function to make the code more
legible eliminating a lot of "for()" in the code .