create click event to place a red piece