basic movement detection implemented