Allow #render_cell in a state

Hey Nick. This pull request makes it possible to call `render_cell` from within a state.