import java.util.*;

public class MazewarTickerThread()extends Thread{
	
	public MazewarTickerThread(){
		super("MazewarServerHandlerThread");
	}
	// might need a while loop in run()
	// TickerThread should only be created on receiving a 'fire' packet ?
	public void run(){
		MazewarPacket tik =  new MazewarPacket();
		tik.type = MW_TICK;
		broadcast(tik); //can multiple broadcast cause problems? plz confirm
		// no, but there isnt a broadcast function in this class
		try{
			Thread.sleep(200);
		}catch (InterruptedException e) {
			e.printStackTrace();
		}
	}
} 

@@ -69,37 +69,144 @@
 d%7B%0A%09
-%0A%09public MazewarTickerThread(
+private Map%3CInteger, MazewarServerHandlerThread%3E clients;%0A%09%0A%09public MazewarTickerThread(Map%3CInteger, MazewarServerHandlerThread%3E clients
 )%7B%0A%09
@@ -243,16 +243,45 @@
 read%22);%0A
+%09%09this.clients = clients;%0A%09%09%0A
 %09%7D%0A%09// m
@@ -383,16 +383,121 @@
 acket ?%0A
+%09//added forever loop. %0A%09//ticker is like a server-side clock that broadcast the tick signal every 200ms%0A
 %09public 
@@ -508,16 +508,31 @@
  run()%7B%0A
+%09%09while(true)%7B%0A
 %09%09Mazewa
@@ -719,16 +719,71 @@
 s class%0A
+%09%09//thought broadcast was static for some reason. oops%0A
 %09%09try%7B%0A%09
@@ -870,11 +870,216 @@
 %0A%09%09%7D%0A%09%7D%0A
+%09%7D%0A%09%0A%09public void broadcast(MazewarPacket currPacket) %7B%0A%0A%09%09Set%3CInteger%3E s = clients.keySet();%0A%09%09for(int tid : s) %7B%0A%09%09%09MazewarServerHandlerThread t = clients.get(tid);%0A       %09%09%09t.send(currPacket);%0A %09%09%7D%0A%09%7D%0A
 %7D %0A

add loop and broadcast for ticker thread