improved moving sequence, added goBack function