public Ghost(int ghostType)
    {
		Point P = new Point();
                this.ghostType = ghostType;
                if(ghostType == 0){
                    P.setLocation(290,270);
                    gcolor = Color.RED;
                }
                else if(ghostType == 1){
                    P.setLocation(250, 330);
                    gcolor = Color.CYAN;
                }
                else if(ghostType == 2){
                    P.setLocation(290, 330);
                    gcolor = Color.PINK;
                }
                else if(ghostType == 3){
                    P.setLocation(330, 330);
                    gcolor = Color.ORANGE;
                }
		Location = P;
		Direction = 0;

		chasing = new GhostChasing();
		dead = new GhostDead();
		running = new GhostRunning();
        waiting = new GhostWaiting();
        escaping = new GhostEscaping();
        entering = new GhostEntering();
        
        //this.setDirection(180);
        
        if(ghostType == 0){
                    P.setLocation(290,270);
                    gcolor = Color.RED;
                    this.setChasing();
                }
                else if(ghostType == 1){
                    P.setLocation(250, 330);
                    gcolor = Color.CYAN;
                    this.setWaiting();
                }
                else if(ghostType == 2){
                    P.setLocation(290, 330);
                    gcolor = Color.PINK;
                    this.setWaiting();
                }
                else if(ghostType == 3){
                    P.setLocation(330, 330);
                    gcolor = Color.ORANGE;
                    this.setWaiting();
                }
		Location = P;
	}