Implemented DetermineNextStateOfLivingCell