You can watch me make this game in the developer commentary video for It's All in the Mind.