After a quick look, I don't believe you ever check to see whether or not the grid position already has a value.
Type: Posts; User: KucerakJM
After a quick look, I don't believe you ever check to see whether or not the grid position already has a value.