A word puzzle generator in Java