New pull request

Hi, This should be pretty good. I played against it and it at least stopped making stupid mistakes. The first player has huge advantage and it doesn't win against me yet.