Create Thread.java

Main thread for the software