added java tournament code