Added a BitFlagFactory to create reusable BitFlags class. Removed
unnecessary param from Square constructor