ant, frog and alosaurus using java