using array lists instead of stacks; need to fix randomization