Help me calculate which element of the grid the mouse was in when it was clicked.

Printable View