implemented energy transfer
added color attribute