Refactor de arena: libarena.js #381