How to build neural networks for games