very crude motion tester copied from tutorial