Add getters to worm.java