Origami Game

I saw this game: http://www.coolmath-games.com/0-folds (Not an app)

I have no idea how the folding paper part is coded or the percentage of accuracy would be coded in Corona. Could someone please explain how?