A "trick" is also another word for something done via slight of hand like with a deck of cards.
A "trick" can also be something quite positive, as in for example if you are explaining a difficult manoeuver such as parallel parking on a busy street............ "The trick here is, that you have to learn to be quick when there is a little break in the traffic flow."
I am not a teacher.