checkers on erlang (learning)