Added on_click and unit_at_pos. Also added unit info in bar.