Screen clicks itself

i picked up a hipad x from amazon and for a couple months it was ok… now the screen clicks itself. closing apps and opening new ones.

this is not normal.

what do i do?