Snippets from my chess AI which implements the MiniMax algorithm