Added rule checking method in GameOfLife class and reowrked cell methods