Translated the 'Suicidal Snail' example to Java