play tricks on  (人に)いたずらをする

1. Sometimes our memory plays tricks on us. We think we remember something, but it was
  actually something we heard about from someone else.

2. His imaginatin started playing tricks on him.

3. Truman thought maybe his mind was playing tricks on him.

4. The students played a trick on their teacher.