Hello.
It is necessary to remove 3 td from each line. When clicking, you need to delete 3 rows and three columns. For example, there was a 9x9 table, with a click it became 6x6, once again a click - 3x3.
Currently, only lines are deleted. My implementation: http://jsfiddle.net/qjjsprda/4/