Set onClickListnener for selecting square