Added comments in shieldEffect and improved getTotalVelocity in movement