Some refactoring. Started implementing board recognition with a previously trained test network.