A more Java program with Synchronized threads, and a server that can spawn new threads