mainActivity trains now based on distance