Update ProgrammedWorm.java

Added counter to programmedWorm, implemented failed