P.s.
questo
$('.box2', $padre).css('background-color', 'white')

e' piu' efficente scritto
$padre.find('.box2').css('background-color', 'white')