colour of 'boxes' div still does not update correctly