Beginning of backbone for chess engine