Added mouseclick functionality on canvas ergo, you can click on the squares and it will calculate which one was pressed.