Refactor and Feature Enhancements

Refactored code and made playing pieces dynamic.