Update MainActivity.java

Added distance and lights functionality