A random walker in Java