Fix ending condition to end on beavers <= 2