fixed bugs in arena.lua