`GameLoop` now has a `state` property.

Previously, it had a `setState()` method instead which wasn't idiomatic.