Modified pieces factory to reduce duplication, need to rename and delete black pieces factory