move processTriggers() to processMovement()