fixed conservation of energy, still have problem with bounces though.
wip.
wip
small adjustment