@Override
    public void draw(Graphics g) 
    {	
	Tile tile = super.getTile();
	int x = tile.getWidth() * tile.getXPos();
	int y = tile.getHeight() * tile.getYPos();
        
	//g.setColor(Color.RED);
        //g.fillOval(x, y, tile.getWidth(), tile.getHeight());
        try 
        {
            BufferedImage img = ImageIO.read(getClass().getResourceAsStream(imgSet[4]));
                if(currentState != GhostState.SCARED){
                    if(pathfinder != null){
                    switch(pathfinder.getCurDir()) {
                    case NORTH:
                        img = ImageIO.read(getClass().getResourceAsStream(imgSet[0]));
                        break;
                    case SOUTH:
                        img = ImageIO.read(getClass().getResourceAsStream(imgSet[1]));
                        break;
                    case EAST:
                        img = ImageIO.read(getClass().getResourceAsStream(imgSet[2]));
                        break;
                    case WEST:
                        img = ImageIO.read(getClass().getResourceAsStream(imgSet[3]));
                        break;
                    }
                }
            }else{
                img = ImageIO.read(getClass().getResourceAsStream(imgSet[5]));
            }
            
            g.drawImage(img, x, y, null);
        }
        catch (IOException ex)
        {
            Logger.getLogger(Ghost.class.getName()).log(Level.SEVERE, null, ex);
        }
    }