Starting to play and poop in places

Just a few days ago he started the above mentioned act.

When I start to understand one thing along with him he just goes off and does something unexpected.

why does he do random acts and what can I do to help and guide him.

I want to do the course that covers all modules will this help me?

Thank you