Refactored ghost pieces