Calculating the energy of moving objects (Ek=1/2mv2)