How to create a go ai neural network?

here is some java code i wrote for a go board. but the code from the book is probably better for an ai.