Downwards movement detection

A very, very first version of detecting downwards movement.
Refactoring

A bit of refactoring to this mess.
Detecting card
Merge pull request #1 from Mivexil/Movement-Detection

Movement detection