public Tile(final FullScreen screen, Piece piece, int x, int y) {
    	    	
    	this.x = x;
    	this.y = y;
    	
    	if(piece == null)
    	{
    		 drawTile("/resources/images/blank.png");
    	}
    	else
    	{
    		switch(piece)
	    	{
	    		case En_Passant_B:
	    			drawTile("/resources/images/pawn_B.png");
	    			break;
	    			
	    		case En_Passant_W:
	    			drawTile("/resources/images/pawn_W.png");
	    			break;
	    			
	    		default:
	    			drawTile("/resources/images/" + piece.toString() + ".png");
	    			break;
	    	}
    	}
    	    
        addMouseListener(new MouseAdapter() {
			@Override
            public void mousePressed(MouseEvent e) {
                super.mousePressed(e);
                clicked = !clicked; 
//                System.out.println("clicky: comp x:"+e.getComponent().getX()+" y:"+e.getComponent().getY()+"\t e.source.hashcode: "+e.getSource().hashCode());
                
                repaint();
                Tile src = (Tile)e.getSource();
                if(screen.clickTile(src.get_X(), src.get_Y()))
                {
                	screen.repainter();
                	clicked = false;
                	repaint();
                }
            }

            @Override
            public void mouseReleased(MouseEvent e) {
                
            }
		});
    }