revised Tug_of_War.java