Ah yeah, sorry about not replying to the second question. So, the game ends when the person whose turn it is can't make a move in that turn. It doesn't end in the previous turn yet.
Thanks!