addding bubbling scripts to Captain.java