initialize movement variables