Added new common class with chess operations