HAngman in Erlang