It works! The grid is clickable. The code is a big mess.