This is a game to train logical thinking in children.
Rules
The games keeps track of the number of turns that the child has taken. It also resets to another randomly selected hot square.
Example:
| . | . | . | . | . | . |
| . | . | . | . | . | . |
| . | . | . | . | . | . |
| . | . | . | . | . | . |
| . | . | . | . | . | . |
| . | . | . | . | . | . |
Assignment

Hints
int pos = Integer.parseInt (e.getActionCommand ());
int i = pos / row;
int j = pos % row;
if (i == x && j == y)
a [pos].setBackground (Color.red);
else if (i + 1 == x && j + 1 == y)
a [pos].setBackground (Color.orange);
if (i == spotx && j == spoty)
{
a [pos].setBackground (Color.red);
message.setText ("You found it!");
}


