add move triangle function