MainActivity now records steps and direction