public void createLifeForm(int x, int y, LifeForms lifeForm)
  {
    //System.out.println("Creating " + lifeForm.name());
    boolean[][] pattern = PATTERNS[lifeForm.ordinal()];
    int patternHeight = pattern.length,
        patternWidth = pattern[0].length;

    for (int i = 0; i < patternHeight; i++)
    {
      if ((y + i) > 0 && (y + i) < height)
      {
        for (int j = 0; j < patternWidth; j++)
        {
          if ((x + j) > 0 && (x + j) < width && pattern[i][j])
            grid[y + i][x + j] = ALIVE;
        }
      }
    }
  }