click handler for the squares, background color change on hover