Simulation for geolocation and threading principles in Java