refactoring

Identifying the Loser from a Game of Word Chain

Koowoy
Rule of the Game Certain number of players present a word in turns, that begins with the letter of the last word’s ending. For instance, if the last word was apple, the current player needs to present a word that starts with e. No word can be presented twice in the same game. Therefore the loser is a. whose word presented didn't begin with the last word's ending(let's call this following the previous word) or b.