package com.nigorojr.typebest;

import java.util.ArrayList;

import javax.swing.JPanel;

public class Word extends JPanel {
    private ArrayList<Letter> word = new ArrayList<Letter>();
    private String rawWord;

    /**
     * Accepts a String which is what will be shown in this JPanel.
     * The constructor will then split the word into letters and create a Letter
     * object for each letter. After that, Letter objects are added to the
     * this JPanel.
     * 
     * @param word
     *            The word that will be shown as a collection of "Letter" class.
     */
    public Word(String word) {
        rawWord = word;

        split();
        for (int i = 0; i < this.word.size(); i++)
            this.add(this.word.get(i));
    }

    /**
     * Splits up the word into letters and add them to an ArrayList.
     */
    private void split() {
        for (int i = 0; i < rawWord.length(); i++) {
            Letter letter = new Letter(rawWord.charAt(i));
            word.add(letter);
        }
    }
}

@@ -147,20 +147,23 @@
 Letter%3E 
-word
+letters
  = new A
@@ -629,24 +629,49 @@
 Word = word;
+%0A        letterCount = 0;
 %0A%0A        sp
@@ -705,25 +705,23 @@
  0; i %3C 
-this.word
+letters
 .size();
@@ -751,17 +751,15 @@
 add(
-this.word
+letters
 .get
@@ -1007,20 +1007,23 @@
         
-word
+letters
 .add(let

Rename ambiguous variable name "word" to "letters"