I think a better deal here is something like
Boston trades Ray Allen and Glen Davis
Boston receives Kirk Hinrich and Kevin Martin
Chicago trades Kirk Hinrich, Tyrus Thomas and Taj Gibson
Chicago receives Ray Allen
Sacramento trades Kevin Martin
Sacramento receives Tyrus Thomas, Glen Davis and Taj Gibson
Boston trades away their big expiring contract in Ray while assuming a lot of salary in return but in doing so sets them up as possibly having the best backcourt in the game for the next three years
Chicago gets rid of Thomas' cap hold if they don't renounce him and Hinrich horrible contract for them and get a ton of cap relief, though giving up Gibson stings a little, which might allow them to wiggle to major free agents in through straight out signings or through sign and trades using Ray Allen as a chip
Sacramento clears their backcourt and decides on Tyreke Evans will getting the young big man help they so desperately want
And this works
http://games.espn.go.com/nba/tradeMachine?tradeId=ygsltoz