Implement game end event for XLIB