Added basic piece manager logic