Removed time error margin and added the play-game loop in the pruning function. Something in the heuristic still makes the AI play bad. Will have to draw the tree to figure out what's going on.