def add_events_for_target(target,events)
      relay = EventRelay.new(target,window)

      events.each do |target_event|
        relay.send target_event.event, *target_event.buttons, &target_event.block
      end

      current_state.push relay
    end
def add_events_for_target(target,events)
      relay = EventRelay.new(target,window)

      events.each do |target_event|
        relay.send target_event.event, *target_event.buttons, &target_event.block
      end

      current_state.push relay
    end
An an event relay to the current game state