Please edit your post and wrap your code with code tags:


<YOUR CODE HERE>

to get highlighting and preserve formatting.

Look at using an array vs 9 separate variables.

Use the reference...