class GameOfLife {

   public static boolean[][] live(boolean[][] world) {
      final boolean[][] result = blankWorld(world.length);
      for (int i = 1; i < world.length - 1; i++) {
         for (int j = 1; j < world.length - 1; j++) {
            result[i][j] = cellState(world[i][j], numberOfNeighbours(world, i, j));
         }
      }
      return result;
   }

}