NI Assembly Election: How does the STV system work?

On Thursday, voters in Northern Ireland will elect 108 MLA's to the Northern Ireland Assembly using a system called Single Transferable Vote.

Ballot papers are marked 1, 2, 3 and so on in order of preference, but how do these make up who is elected or eliminated?

BBC News NI elects members to the 'Emoji Parliament' to show how the system works.