Merging existing chess code into repository for clean integration later