1. A computer-implemented method comprising: instantiating, in one or more memory devices, a plurality of game state elements, wherein the game state elements include scripting language code configured to process events associated with wagering games, and wherein the game state elements are replaceable without code compilation and linking; instantiating, in the one or more memory devices, an event controller including scripting language code configured to notify ones of the game state elements about certain of the events; presenting the wagering games, wherein the presenting includes, detecting, in the event controller, events indicating player input and intermediate results of the wagering games; notifying certain of the game state elements about certain of the events; controlling, based on the events, game pieces used in the wagering games, wherein the controlling occurs in the game state elements; and presenting, using the game state elements, results for the wagering games.