@SuppressWarnings("deprecation")
	public void timer() {
		if (NetClient.isNet() || NetServer.isNet()) {
			this.timeLeftMs -= 1000/PHYSICS_FPS;
			if (this.timeLeftMs < 0) {
				if (this.myBest > this.otherBest) {
					JOptionPane.showMessageDialog(myCanvas,"Victory! You won "+this.myBest+" to "+this.otherBest);
				}
				else if (this.myBest < this.otherBest) {
					JOptionPane.showMessageDialog(myCanvas,"Defeat! You lost "+this.myBest+" to "+this.otherBest);
				}
				else if (this.myBest == this.otherBest) {
					JOptionPane.showMessageDialog(myCanvas,"Tie game! You tied "+this.myBest+" to "+this.otherBest);
				}
				this.myComponent.getFrame().dispose();
				this.timeT.stop();
			}
			this.myCanvas.repaint();
		}
	}