Settlers Online combat simulator in Erlang