Added basic controls

As per the tutorial, added control behavio(u)r, and then added the flip
functionality.