public void run() {
                // Put a spiffy message in the console
                try {
                // Loop while we are active
                        while(active) {
                                
                                MazewarPacket headQueuePacket;
                                headQueuePacket = clientCommandQueue.peek();
                                if (headQueuePacket == null)
                                {
                                        continue;
                                }
                                if (headQueuePacket.name.equals(name)) {
                                        clientCommandQueue.poll();
                                        if (headQueuePacket.command == MazewarPacket.MAZEWAR_MOVEFORWARD)
                                                forward();
                                        else if (headQueuePacket.command == MazewarPacket.MAZEWAR_MOVEBACKWARD)
                                                backup();
                                        else if (headQueuePacket.command == MazewarPacket.MAZEWAR_ROTATELEFT)
                                                turnLeft();
                                        else if (headQueuePacket.command == MazewarPacket.MAZEWAR_ROTATERIGHT)
                                                turnRight();
                                        else if (headQueuePacket.command == MazewarPacket.MAZEWAR_FIRE)
                                                fire();
                                        else {
                                                //do nothing
                                        }       
                                }
                        }
                                
                } catch(Exception e) {
                                // Shouldn't happen.
                }
        }