added functions.h

added movement