XNA 4.0 port of Bryan Wagstaff's State Machine tutorial.