private TetravexPiece getIdeal( int x, int y )
	{
		TetravexPiece ideal = new TetravexPiece( EMPTY, EMPTY, EMPTY, EMPTY );
		
		if (isPiece( x - 1, y ))
		{
			ideal.s[LEFT] = pieces[board[y][x - 1]].s[RIGHT];
		}
		if (isPiece( x + 1, y ))
		{
			ideal.s[RIGHT] = pieces[board[y][x + 1]].s[LEFT];
		}
		if (isPiece( x, y - 1 ))
		{
			ideal.s[TOP] = pieces[board[y - 1][x]].s[BOTTOM];
		}
		if (isPiece( x, y + 1 ))
		{
			ideal.s[BOTTOM] = pieces[board[y + 1][x]].s[TOP];
		}
		
		return ideal;
	}