Mind-reading thing, does anybody

Does anyone know how I could make something similar to this?

http://www.arjandpoopy.com/games.html

It’s really weird