working on click funciton for the board