Update Dots.java

Added sine wave to dot formation