cleaned up minimax part, added debugging code. this submission seems to beat or tie nearly all other bots