Modify: 'unitSelected' event dispatch only if click on tile with unit, otherwise 'tileSelected' event