Fixed alpha beta pruning, cleaned code