fixed .end() bug in modal opener on game lost condition