created recalcvelocity method and established movement listener