Improved flapping

Moved the flapping code to the Mechanics class. This also made flapping smoother,
as "deltaTime" is being applied consistently.